package com.jinke.api.modules.ums.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AdminLogVO {
    @ApiModelProperty("管理员ID")
    private Long adminId;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("访问路径")
    private String uri;

    @ApiModelProperty("请求参数")
    private String params;

    @ApiModelProperty("访问方式")
    private String method;

    @ApiModelProperty("提示语")
    private String message;

    @ApiModelProperty("IP地址")
    private String ip;

    @ApiModelProperty("请求结果CODE")
    private Integer statusCode;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createdAt;
}
